import axios from './network'

function getLogin(data){
  return axios({
    url:'api/driver/login',
    method:"post",
    data
  })
}

//   获得公司任务分配
function getComponyTask(){
  return axios({
    url:"api/driver/order/company_send"
  })
}

//   拒绝公司任务分配
function getRejectTask(order_id){
  return axios({
    url:'api/driver/order/company_reject',
    data:{
      order_id
    }
  })
}


//     修改资料
function sendChangeDriver(data){
  return axios({
    url:'api/driver/driver_edite',
    method:'POST',
    data
  })
}

//      增加订阅消息权限
function sendRefreshToken(data){
  return axios({
    url:'api/driver/refresh_token',
    method:'POST',
    data
  })
}

export{
  getLogin,
  getComponyTask,
  getRejectTask,
  sendChangeDriver,
  sendRefreshToken
}